@charset "utf-8";

//页面布局
.my_fav {
    padding: 26px 6px 60px 25px;
    color: #444f58;
    
    //链接默认样式
    a {
        color: #444f58;
        transition: all 300ms ease;
        
        &:hover {
            color: #eb413d;
        }
    }
    
    //页面标题
    .caption {
        font-size: 20px;
        font-weight: normal;
        margin-bottom: 23px;
    }
    
    //收藏列表
    .fav_list {
        margin-bottom: 60px;
        
        .list_prod {
            font-size: 0;
            
            //商品信息
            >li {
                display: inline-block;
                width: 245px;
                margin-right: 12px;
                margin-bottom: 27px;
                position: relative;
                
                &:nth-child(3n) {
                    margin-right: 0;
                }
                
                //图片容器
                .pic_box {
                    display: block;
                    width: 100%;
                    height: 245px;
                    border: 1px solid #f0f0f0;
                    box-sizing: border-box;
                    text-align: center;
                    overflow: hidden;
                    
                    //图片
                    img {
                        display: inline-block;
                        height: 80%;
                        margin-top: 10%;
                        transition: all .2s linear;
                    }
                    
                    &:hover img {
                        transform: scale(1.1, 1.1);
                    }
                }
                
                //商品名称
                strong {
                    display: block;
                    font-size: 13px;
                    margin-top: 17px;
                    margin-bottom: 6px;
                }
                
                //商品价格
                small {
                    display: block;
                    font-size: 13px;
                    color: #99999a;
                    margin-bottom: 7px;
                }
                
                //商品标签
                ul {
                    font-size: 0;
                    
                    li {
                        display: inline-block;
                        font-size: 12px;
                        
                        //标签样式
                        a {
                            display: block;
                            padding: 0 12px;
                            color: #ffffff;
                            height: 19px;
                            line-height: 19px;
                            background-color: #eb413d;
                            
                            &:hover {
                                opacity: .8;
                            }
                        }
                        
                        //第二个标签背景
                        &:nth-child(2) a {
                            background-color: #000000;
                        }
                        
                        //第三个标签背景
                        &:nth-child(3) a {
                            background-color: #878787;
                        }
                    }
                }
                
                //删除按钮
                input {
                    position: absolute;
                    top: 0;
                    right: 0;
                    width: 41px;
                    height: 20px;
                    font-size: 13px;
                    color: #ffffff;
                    background-color: rgba(0, 0, 0, .5);
                    transition: all 500ms ease;
                    opacity: 0;
                    visibility: hidden;
                    
                    &:hover {
                        background-color: rgba(139, 0, 0, .5);
                    }
                }
                
                //显示删除按钮
                &:hover {
                    input {
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
        }
    }
    
    //分页
    .pages {
        text-align: right;
        
        ul {
            display: inline-block;
            font-size: 0;
            
            li {
                display: inline-block;
                font-size: 13px;
                text-align: center;
                
                &+li {
                    margin-left: 7px;
                }
                
                a {
                    display: block;
                    min-width: 38px;
                    height: 38px;
                    line-height: 38px;
                    border: 1px solid #e7e7e7;
                    background-color: #ffffff;
                    border-radius: 2px;
                    box-sizing: border-box;
                }
                
                &:hover {
                    a {
                        border-color: #eb413d;
                        color: #eb413d;
                    }
                }
                
                i {
                    display: block;
                    font-style: normal;
                    height: 38px;
                    line-height: 38px;
                    border: 1px solid #e7e7e7;
                    background-color: #ffffff;
                    border-radius: 2px;
                    box-sizing: border-box;
                    
                    input {
                        width: 40px;
                        background-color: transparent;
                        border: none;
                        font-size: 13px;
                    }
                    
                    input[type="text"] {
                        width: 34px;
                        padding-left: 10px;
                        margin-right: 5px;
                        box-sizing: border-box;
                    }
                    
                    input[type="button"] {
                        color: #99999a;
                    }
                }
                
                &:nth-last-child(2) {
                    i {
                        padding-right: 10px;
                    }
                }
                
                &:hover {
                    i {
                        border-color: #eb413d;
                        color: #eb413d;
                        
                        input {
                            color: #eb413d;
                        }
                    }
                }
            }
            
            .selected {
                a {
                    border-color: #eb413d;
                    color: #eb413d;
                }
            }
        }
    }
    .sui-pagination{
        ul{
            margin-bottom: 110px;
            input{
                border: none;
                background: none;
                margin: 0;
                width: 30px;
                color: #444f58;
                &:hover,&:active{
                    color: #EB413D;
                }
            }
            li{
                float: left;
                margin-left: 5px;
                margin-right: 5px;
                a{
                    width: 38px;
                    height: 38px;
                    border: 1px solid #e7e7e7;
                    border-radius:5px;
                    text-align: center;
                    line-height: 38px;
                    font-size: 16px;
                    color: #444f58;
                }
                .activebaba{
                    border: 1px solid #EB413D;
                    color: #EB413D;
                    background-color: white;
                }
                &:hover,&:active{
                    a{
                        border: 1px solid #EB413D;
                        color: #EB413D;
                        background: none;
                        input{
                            color: #EB413D;
                        }
                    }
                }
            }
            .yema{
                a{
                    width: 60px;
                }
            }
            .dotted{
                border-left: 0;
                border-right: 0;
                margin-left: 0;
                span{
                    height: 38px;
                    line-height: 38px;
                    font-size: 16px;
                    margin: 0;
                    background: none;
                    border: none;
                    color: #444f58;
                }
            }
        }
    }
}
